package tech.aistar.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Message {
    private Integer id;

    private Integer registerId;

    private String messageContent;

    private Integer messageType;

    @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private Date responseTime;

    private String account;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRegisterId() {
        return registerId;
    }

    public void setRegisterId(Integer registerId) {
        this.registerId = registerId;
    }

    public String getMessageContent() {
        return messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    public Integer getMessageType() {
        return messageType;
    }

    public void setMessageType(Integer messageType) {
        this.messageType = messageType;
    }

    public Date getResponseTime() {
        return responseTime;
    }

    public void setResponseTime(Date responseTime) {
        this.responseTime = responseTime;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Message{");
        sb.append("id=").append(id);
        sb.append(", registerId='").append(registerId).append('\'');
        sb.append(", messageContent='").append(messageContent).append('\'');
        sb.append(", messageType=").append(messageType);
        sb.append(", responseTime=").append(responseTime);
        sb.append(", account='").append(account).append('\'');
        sb.append('}');
        return sb.toString();
    }
}